package org.vectrics.company;

import java.util.HashSet;
import java.util.Set;

import org.vectrics.common.db.Criteria;

public class CompanyPersonGroupCriteria extends Criteria {
	private Set companyList = new HashSet();
	private Set groupTypeList = new HashSet();
	
	public CompanyPersonGroupCriteria() {
		super();
	}

	/**
	 * @return Returns the companyList.
	 */
	public Set getCompanyList() {
		return companyList;
	}

	/**
	 * @param companyList The companyList to set.
	 */
	public void setCompanyList(Set companyList) {
		this.companyList = companyList;
	}

	public void addCompany(Company company) {
		this.companyList.add(company);
	}

	/**
	 * @return Returns the groupTypeList.
	 */
	public Set getGroupTypeList() {
		return groupTypeList;
	}

	/**
	 * @param groupTypeList The groupTypeList to set.
	 */
	public void setGroupTypeList(Set groupTypeList) {
		this.groupTypeList = groupTypeList;
	}
	
	public void addGroupType(CompanyPersonGroupType groupType) {
		this.groupTypeList.add(groupType);
	}
}
